package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    //使用ctrl+r快捷键或者进入Edit-->Find-->Replace替换
    void save(Employee employee, Long[] ids);

    void delete(Long id);

    void update(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    //分页查询
    PageInfo<Employee> query(QueryObject qo);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    Employee login(String username, String password);
}
